import fetch from '../utils/axios'

//获取访问者ip
// 修改getIpApi使其返回Promise
export const signIpApi = () => {
  return fetch.post('/signip'); // 添加return
}

//新建wall
export const insertWallApi = (data) => {
  return fetch.post('/insertWall', data)
}

//查询留言墙
export const findWallPageApi = (data) => {
  return fetch.post('/findwallpage', data)
}

//反馈
export const insertFeedbackApi = (data) => {
  return fetch.post('/insertfeedback', data)
}

//新增评论
export const insertCommentApi = (data) => {
  return fetch.post('/insertcomment', data)
}
//查询评论
export const findCommentPageApi = (data) => {
  return fetch.post('/findcommentpage', data)
}

//上传图片
export const profileApi = (data) => {
  return fetch.post('/profile', data)
}